package chapter08_oop._abstract;

/**
 * ClassName: Student
 * Package: capter08._abstract
 * Description:
 *
 * @Author SherryAn
 * @Create 2025/7/21 14:33
 */
public class Student extends Person{
    String school;

    public Student(){

    }

    public Student(String name, int age, String school) {
        super(name, age);
        this.school = school;
    }

    public void eat(){
        System.out.println("学生多吃");
    }

    public void sleep(){
        System.out.println("人睡觉");
    }
}
